package com.lenovo.dll.nebula.vod.parse;

/**
 * Data Parse Factory,choose the parser
 * 
 * @author LuJian
 * 
 */
public class ParseFactory {

	public static DataParse getParseInstance(String parseName) {
		try {
			return (DataParse) Class.forName(parseName).newInstance();
		} catch (InstantiationException e) {
			// InstantiationException log
		} catch (IllegalAccessException e) {
			// IllegalAccessException log
		} catch (ClassNotFoundException e) {
			// ClassNotFoundException log
		} catch (Exception e) {
			// other Exception log
		}
		// if throw Exception
		return null;
	}

}
